<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: ethernet.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ethernet_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ethernet.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ethernet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  $Id: ethernet.h,v db932582b674 2012/01/10 09:43:36 fp $</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  This file is part of the IgH EtherCAT Master.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  modify it under the terms of the GNU General Public License version 2, as</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  published by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  with the IgH EtherCAT Master; if not, write to the Free Software</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  ---</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  The license mentioned above concerns the source code only. Using the</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  EtherCAT technology and brand is only permitted in compliance with the</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  industrial property and similar rights of Beckhoff Automation GmbH.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef __EC_ETHERNET_H__</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define __EC_ETHERNET_H__</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;linux/list.h&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;linux/netdevice.h&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2, 6, 27)</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;linux/semaphore.h&gt;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;asm/semaphore.h&gt;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="globals_8h.html">globals.h</a>&quot;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="slave_8h.html">slave.h</a>&quot;</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="datagram_8h.html">datagram.h</a>&quot;</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structec__eoe__frame__t.html">   59</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structec__eoe__frame__t.html#a1c6d064788e29158bd03601b481bcfa5">   61</a></span>&#160;    <span class="keyword">struct </span>list_head queue; </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structec__eoe__frame__t.html#a373ee9510d98da5da3077944d5d074cb">   62</a></span>&#160;    <span class="keyword">struct </span>sk_buff *<a class="code" href="structec__eoe__frame__t.html#a373ee9510d98da5da3077944d5d074cb">skb</a>; </div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<a class="code" href="structec__eoe__frame__t.html">ec_eoe_frame_t</a>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="ethernet_8h.html#a03b01351f25a9210938e676941427cf4">   68</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structec__eoe.html">ec_eoe</a> <a class="code" href="structec__eoe.html">ec_eoe_t</a>; </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structec__eoe.html">   76</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structec__eoe.html">ec_eoe</a></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;{</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structec__eoe.html#af41c63118154c1645769f19658256df0">   78</a></span>&#160;    <span class="keyword">struct </span>list_head <a class="code" href="structec__eoe.html#af41c63118154c1645769f19658256df0">list</a>; </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structec__eoe.html#a4a07acce0d52dfec65250bb9e8152976">   79</a></span>&#160;    <a class="code" href="structec__slave.html">ec_slave_t</a> *<a class="code" href="structec__eoe.html#a4a07acce0d52dfec65250bb9e8152976">slave</a>; </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structec__eoe.html#a58a38a4520677a172eb12ed44d230502">   80</a></span>&#160;    <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> <a class="code" href="structec__eoe.html#a58a38a4520677a172eb12ed44d230502">datagram</a>; </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structec__eoe.html#a3a3a486cb3359c0d528e4e4e37a6953d">   81</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a3a3a486cb3359c0d528e4e4e37a6953d">queue_datagram</a>; </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structec__eoe.html#a2dae5cf48641f38edad80223dd93621c">   82</a></span>&#160;    void (*<a class="code" href="structec__eoe.html#a2dae5cf48641f38edad80223dd93621c">state</a>)(<a class="code" href="structec__eoe.html">ec_eoe_t</a> *); </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structec__eoe.html#aa11f7b383aa09219aca3cfeffcdb55df">   83</a></span>&#160;    <span class="keyword">struct </span>net_device *<a class="code" href="structec__eoe.html#aa11f7b383aa09219aca3cfeffcdb55df">dev</a>; </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structec__eoe.html#a859cf84e58d4407062e2d96c5b44a480">   84</a></span>&#160;    <span class="keyword">struct </span>net_device_stats <a class="code" href="structec__eoe.html#a859cf84e58d4407062e2d96c5b44a480">stats</a>; </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structec__eoe.html#a174f57afa262c3a4b21b1e86268442f0">   85</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a174f57afa262c3a4b21b1e86268442f0">opened</a>; </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structec__eoe.html#aaf40c510901fb2cb0765518c2c8ed229">   86</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structec__eoe.html#aaf40c510901fb2cb0765518c2c8ed229">rate_jiffies</a>; </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structec__eoe.html#aaed9dafdc5f3ae99a04e3941408e9e00">   88</a></span>&#160;    <span class="keyword">struct </span>sk_buff *<a class="code" href="structec__eoe.html#aaed9dafdc5f3ae99a04e3941408e9e00">rx_skb</a>; </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structec__eoe.html#a7647dd32da557fbba05bd0dd1153d2a9">   89</a></span>&#160;    off_t <a class="code" href="structec__eoe.html#a7647dd32da557fbba05bd0dd1153d2a9">rx_skb_offset</a>; </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structec__eoe.html#a4ad33f25a05ae6b8664306c8bb12d30d">   90</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structec__eoe.html#a4ad33f25a05ae6b8664306c8bb12d30d">rx_skb_size</a>; </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structec__eoe.html#a88d376026ca84277ec5fa85c31ab1c17">   91</a></span>&#160;    uint8_t <a class="code" href="structec__eoe.html#a88d376026ca84277ec5fa85c31ab1c17">rx_expected_fragment</a>; </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structec__eoe.html#a94ade8d6e6250de7d04b86160b83c22c">   92</a></span>&#160;    uint32_t <a class="code" href="structec__eoe.html#a94ade8d6e6250de7d04b86160b83c22c">rx_counter</a>; </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structec__eoe.html#a1062493d151d4b2ad4e0392673ad1507">   93</a></span>&#160;    uint32_t <a class="code" href="structec__eoe.html#a1062493d151d4b2ad4e0392673ad1507">rx_rate</a>; </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structec__eoe.html#ad0775c67897e6c38beb0b656e8732d05">   94</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#ad0775c67897e6c38beb0b656e8732d05">rx_idle</a>; </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structec__eoe.html#afd6bcfa6f1ad2bfb371439776b2ca8a9">   96</a></span>&#160;    <span class="keyword">struct </span>list_head <a class="code" href="structec__eoe.html#afd6bcfa6f1ad2bfb371439776b2ca8a9">tx_queue</a>; </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structec__eoe.html#acaccde2a704283ace65f59aa1611e7cc">   97</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#acaccde2a704283ace65f59aa1611e7cc">tx_queue_size</a>; </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structec__eoe.html#a167ab3458420a60abec520dd0c73e5d5">   98</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a167ab3458420a60abec520dd0c73e5d5">tx_queue_active</a>; </div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structec__eoe.html#a3ec0e5dc97f984769403f00230e53f03">   99</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a3ec0e5dc97f984769403f00230e53f03">tx_queued_frames</a>; </div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structec__eoe.html#a53d2194eaa281eeaf4d101443b4117a6">  100</a></span>&#160;    <span class="keyword">struct </span>semaphore <a class="code" href="structec__eoe.html#a53d2194eaa281eeaf4d101443b4117a6">tx_queue_sem</a>; </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structec__eoe.html#a5f814555b215fa648246d3e4b8952db4">  101</a></span>&#160;    <a class="code" href="structec__eoe__frame__t.html">ec_eoe_frame_t</a> *<a class="code" href="structec__eoe.html#a5f814555b215fa648246d3e4b8952db4">tx_frame</a>; </div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structec__eoe.html#aa662995414d6117c623a67d7d3807bfc">  102</a></span>&#160;    uint8_t <a class="code" href="structec__eoe.html#aa662995414d6117c623a67d7d3807bfc">tx_frame_number</a>; </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structec__eoe.html#a3ee417a7b394d57b0ba1e7513e24f8b6">  103</a></span>&#160;    uint8_t <a class="code" href="structec__eoe.html#a3ee417a7b394d57b0ba1e7513e24f8b6">tx_fragment_number</a>; </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structec__eoe.html#a77e698a64338945f1c57b75771881255">  104</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structec__eoe.html#a77e698a64338945f1c57b75771881255">tx_offset</a>; </div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structec__eoe.html#aacdbf76b955e5aeb7f1d627a2ca93af5">  105</a></span>&#160;    uint32_t <a class="code" href="structec__eoe.html#aacdbf76b955e5aeb7f1d627a2ca93af5">tx_counter</a>; </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="structec__eoe.html#abfaa2eb7e9ff799e9872a49819177448">  106</a></span>&#160;    uint32_t <a class="code" href="structec__eoe.html#abfaa2eb7e9ff799e9872a49819177448">tx_rate</a>; </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structec__eoe.html#a4f62dfcc5d7d43780af3e2520e66ab74">  107</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a4f62dfcc5d7d43780af3e2520e66ab74">tx_idle</a>; </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structec__eoe.html#a94fc1a4085026439575dee3432a8613d">  109</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__eoe.html#a94fc1a4085026439575dee3432a8613d">tries</a>; </div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ethernet_8h.html#a890ed81aeeee6742971bae174623f7d9">ec_eoe_init</a>(<a class="code" href="structec__eoe.html">ec_eoe_t</a> *, <a class="code" href="structec__slave.html">ec_slave_t</a> *);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keywordtype">void</span> <a class="code" href="ethernet_8h.html#a2d848439972cb4dcc037a2f9bb456715">ec_eoe_clear</a>(<a class="code" href="structec__eoe.html">ec_eoe_t</a> *);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">void</span> <a class="code" href="ethernet_8h.html#ab7ba009185c67570f4c95446cee7eb76">ec_eoe_run</a>(<a class="code" href="structec__eoe.html">ec_eoe_t</a> *);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keywordtype">void</span> <a class="code" href="ethernet_8h.html#a18fc60e72cbbc99eb59a0e43abdfe328">ec_eoe_queue</a>(<a class="code" href="structec__eoe.html">ec_eoe_t</a> *);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ethernet_8h.html#aac0563934b958ac04dc433e8fe442234">ec_eoe_is_open</a>(<span class="keyword">const</span> <a class="code" href="structec__eoe.html">ec_eoe_t</a> *);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ethernet_8h.html#a2c002900d42f291213e271b7196f991e">ec_eoe_is_idle</a>(<span class="keyword">const</span> <a class="code" href="structec__eoe.html">ec_eoe_t</a> *);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="ttc" id="structec__eoe__frame__t_html"><div class="ttname"><a href="structec__eoe__frame__t.html">ec_eoe_frame_t</a></div><div class="ttdoc">Queued frame structure. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00059">ethernet.h:59</a></div></div>
<div class="ttc" id="structec__eoe_html_aacdbf76b955e5aeb7f1d627a2ca93af5"><div class="ttname"><a href="structec__eoe.html#aacdbf76b955e5aeb7f1d627a2ca93af5">ec_eoe::tx_counter</a></div><div class="ttdeci">uint32_t tx_counter</div><div class="ttdoc">octets transmitted during last second </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00105">ethernet.h:105</a></div></div>
<div class="ttc" id="ethernet_8h_html_a2d848439972cb4dcc037a2f9bb456715"><div class="ttname"><a href="ethernet_8h.html#a2d848439972cb4dcc037a2f9bb456715">ec_eoe_clear</a></div><div class="ttdeci">void ec_eoe_clear(ec_eoe_t *)</div><div class="ttdoc">EoE destructor. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00208">ethernet.c:208</a></div></div>
<div class="ttc" id="structec__eoe__frame__t_html_a373ee9510d98da5da3077944d5d074cb"><div class="ttname"><a href="structec__eoe__frame__t.html#a373ee9510d98da5da3077944d5d074cb">ec_eoe_frame_t::skb</a></div><div class="ttdeci">struct sk_buff * skb</div><div class="ttdoc">socket buffer </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00062">ethernet.h:62</a></div></div>
<div class="ttc" id="structec__eoe_html_afd6bcfa6f1ad2bfb371439776b2ca8a9"><div class="ttname"><a href="structec__eoe.html#afd6bcfa6f1ad2bfb371439776b2ca8a9">ec_eoe::tx_queue</a></div><div class="ttdeci">struct list_head tx_queue</div><div class="ttdoc">queue for frames to send </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00096">ethernet.h:96</a></div></div>
<div class="ttc" id="structec__eoe_html_a3ee417a7b394d57b0ba1e7513e24f8b6"><div class="ttname"><a href="structec__eoe.html#a3ee417a7b394d57b0ba1e7513e24f8b6">ec_eoe::tx_fragment_number</a></div><div class="ttdeci">uint8_t tx_fragment_number</div><div class="ttdoc">number of the fragment </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00103">ethernet.h:103</a></div></div>
<div class="ttc" id="structec__eoe_html_a4a07acce0d52dfec65250bb9e8152976"><div class="ttname"><a href="structec__eoe.html#a4a07acce0d52dfec65250bb9e8152976">ec_eoe::slave</a></div><div class="ttdeci">ec_slave_t * slave</div><div class="ttdoc">pointer to the corresponding slave </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00079">ethernet.h:79</a></div></div>
<div class="ttc" id="structec__eoe_html_acaccde2a704283ace65f59aa1611e7cc"><div class="ttname"><a href="structec__eoe.html#acaccde2a704283ace65f59aa1611e7cc">ec_eoe::tx_queue_size</a></div><div class="ttdeci">unsigned int tx_queue_size</div><div class="ttdoc">Transmit queue size. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00097">ethernet.h:97</a></div></div>
<div class="ttc" id="structec__eoe_html_a4ad33f25a05ae6b8664306c8bb12d30d"><div class="ttname"><a href="structec__eoe.html#a4ad33f25a05ae6b8664306c8bb12d30d">ec_eoe::rx_skb_size</a></div><div class="ttdeci">size_t rx_skb_size</div><div class="ttdoc">size of the allocated socket buffer memory </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00090">ethernet.h:90</a></div></div>
<div class="ttc" id="structec__eoe_html_a77e698a64338945f1c57b75771881255"><div class="ttname"><a href="structec__eoe.html#a77e698a64338945f1c57b75771881255">ec_eoe::tx_offset</a></div><div class="ttdeci">size_t tx_offset</div><div class="ttdoc">number of octets sent </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00104">ethernet.h:104</a></div></div>
<div class="ttc" id="slave_8h_html"><div class="ttname"><a href="slave_8h.html">slave.h</a></div><div class="ttdoc">EtherCAT slave structure. </div></div>
<div class="ttc" id="structec__datagram__t_html"><div class="ttname"><a href="structec__datagram__t.html">ec_datagram_t</a></div><div class="ttdoc">EtherCAT datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00087">datagram.h:87</a></div></div>
<div class="ttc" id="structec__eoe_html_a167ab3458420a60abec520dd0c73e5d5"><div class="ttname"><a href="structec__eoe.html#a167ab3458420a60abec520dd0c73e5d5">ec_eoe::tx_queue_active</a></div><div class="ttdeci">unsigned int tx_queue_active</div><div class="ttdoc">kernel netif queue started </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00098">ethernet.h:98</a></div></div>
<div class="ttc" id="structec__eoe_html_abfaa2eb7e9ff799e9872a49819177448"><div class="ttname"><a href="structec__eoe.html#abfaa2eb7e9ff799e9872a49819177448">ec_eoe::tx_rate</a></div><div class="ttdeci">uint32_t tx_rate</div><div class="ttdoc">transmit rate (bps) </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00106">ethernet.h:106</a></div></div>
<div class="ttc" id="globals_8h_html"><div class="ttname"><a href="globals_8h.html">globals.h</a></div><div class="ttdoc">Global definitions and macros. </div></div>
<div class="ttc" id="structec__eoe_html_a88d376026ca84277ec5fa85c31ab1c17"><div class="ttname"><a href="structec__eoe.html#a88d376026ca84277ec5fa85c31ab1c17">ec_eoe::rx_expected_fragment</a></div><div class="ttdeci">uint8_t rx_expected_fragment</div><div class="ttdoc">next expected fragment number </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00091">ethernet.h:91</a></div></div>
<div class="ttc" id="ethernet_8h_html_ab7ba009185c67570f4c95446cee7eb76"><div class="ttname"><a href="ethernet_8h.html#ab7ba009185c67570f4c95446cee7eb76">ec_eoe_run</a></div><div class="ttdeci">void ec_eoe_run(ec_eoe_t *)</div><div class="ttdoc">Runs the EoE state machine. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00324">ethernet.c:324</a></div></div>
<div class="ttc" id="structec__slave_html"><div class="ttname"><a href="structec__slave.html">ec_slave</a></div><div class="ttdoc">EtherCAT slave. </div><div class="ttdef"><b>Definition:</b> <a href="slave_8h_source.html#l00176">slave.h:176</a></div></div>
<div class="ttc" id="ethernet_8h_html_aac0563934b958ac04dc433e8fe442234"><div class="ttname"><a href="ethernet_8h.html#aac0563934b958ac04dc433e8fe442234">ec_eoe_is_open</a></div><div class="ttdeci">int ec_eoe_is_open(const ec_eoe_t *)</div><div class="ttdoc">Returns the state of the device. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00366">ethernet.c:366</a></div></div>
<div class="ttc" id="structec__eoe_html_aaf40c510901fb2cb0765518c2c8ed229"><div class="ttname"><a href="structec__eoe.html#aaf40c510901fb2cb0765518c2c8ed229">ec_eoe::rate_jiffies</a></div><div class="ttdeci">unsigned long rate_jiffies</div><div class="ttdoc">time of last rate output </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00086">ethernet.h:86</a></div></div>
<div class="ttc" id="ethernet_8h_html_a18fc60e72cbbc99eb59a0e43abdfe328"><div class="ttname"><a href="ethernet_8h.html#a18fc60e72cbbc99eb59a0e43abdfe328">ec_eoe_queue</a></div><div class="ttdeci">void ec_eoe_queue(ec_eoe_t *)</div><div class="ttdoc">Queues the datagram, if necessary. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00352">ethernet.c:352</a></div></div>
<div class="ttc" id="datagram_8h_html"><div class="ttname"><a href="datagram_8h.html">datagram.h</a></div><div class="ttdoc">EtherCAT datagram structure. </div></div>
<div class="ttc" id="structec__eoe_html_a174f57afa262c3a4b21b1e86268442f0"><div class="ttname"><a href="structec__eoe.html#a174f57afa262c3a4b21b1e86268442f0">ec_eoe::opened</a></div><div class="ttdeci">unsigned int opened</div><div class="ttdoc">net_device is opened </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00085">ethernet.h:85</a></div></div>
<div class="ttc" id="structec__eoe_html_af41c63118154c1645769f19658256df0"><div class="ttname"><a href="structec__eoe.html#af41c63118154c1645769f19658256df0">ec_eoe::list</a></div><div class="ttdeci">struct list_head list</div><div class="ttdoc">list item </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00078">ethernet.h:78</a></div></div>
<div class="ttc" id="ethernet_8h_html_a2c002900d42f291213e271b7196f991e"><div class="ttname"><a href="ethernet_8h.html#a2c002900d42f291213e271b7196f991e">ec_eoe_is_idle</a></div><div class="ttdeci">int ec_eoe_is_idle(const ec_eoe_t *)</div><div class="ttdoc">Returns the idle state. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00378">ethernet.c:378</a></div></div>
<div class="ttc" id="ethernet_8h_html_a890ed81aeeee6742971bae174623f7d9"><div class="ttname"><a href="ethernet_8h.html#a890ed81aeeee6742971bae174623f7d9">ec_eoe_init</a></div><div class="ttdeci">int ec_eoe_init(ec_eoe_t *, ec_slave_t *)</div><div class="ttdoc">EoE constructor. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8c_source.html#l00104">ethernet.c:104</a></div></div>
<div class="ttc" id="structec__eoe_html_a7647dd32da557fbba05bd0dd1153d2a9"><div class="ttname"><a href="structec__eoe.html#a7647dd32da557fbba05bd0dd1153d2a9">ec_eoe::rx_skb_offset</a></div><div class="ttdeci">off_t rx_skb_offset</div><div class="ttdoc">current write pointer in the socket buffer </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00089">ethernet.h:89</a></div></div>
<div class="ttc" id="structec__eoe_html_a58a38a4520677a172eb12ed44d230502"><div class="ttname"><a href="structec__eoe.html#a58a38a4520677a172eb12ed44d230502">ec_eoe::datagram</a></div><div class="ttdeci">ec_datagram_t datagram</div><div class="ttdoc">datagram </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00080">ethernet.h:80</a></div></div>
<div class="ttc" id="structec__eoe_html_a859cf84e58d4407062e2d96c5b44a480"><div class="ttname"><a href="structec__eoe.html#a859cf84e58d4407062e2d96c5b44a480">ec_eoe::stats</a></div><div class="ttdeci">struct net_device_stats stats</div><div class="ttdoc">device statistics </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00084">ethernet.h:84</a></div></div>
<div class="ttc" id="structec__eoe_html_a4f62dfcc5d7d43780af3e2520e66ab74"><div class="ttname"><a href="structec__eoe.html#a4f62dfcc5d7d43780af3e2520e66ab74">ec_eoe::tx_idle</a></div><div class="ttdeci">unsigned int tx_idle</div><div class="ttdoc">Idle flag. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00107">ethernet.h:107</a></div></div>
<div class="ttc" id="structec__eoe_html_a1062493d151d4b2ad4e0392673ad1507"><div class="ttname"><a href="structec__eoe.html#a1062493d151d4b2ad4e0392673ad1507">ec_eoe::rx_rate</a></div><div class="ttdeci">uint32_t rx_rate</div><div class="ttdoc">receive rate (bps) </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00093">ethernet.h:93</a></div></div>
<div class="ttc" id="structec__eoe_html_aaed9dafdc5f3ae99a04e3941408e9e00"><div class="ttname"><a href="structec__eoe.html#aaed9dafdc5f3ae99a04e3941408e9e00">ec_eoe::rx_skb</a></div><div class="ttdeci">struct sk_buff * rx_skb</div><div class="ttdoc">current rx socket buffer </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00088">ethernet.h:88</a></div></div>
<div class="ttc" id="structec__eoe_html_a2dae5cf48641f38edad80223dd93621c"><div class="ttname"><a href="structec__eoe.html#a2dae5cf48641f38edad80223dd93621c">ec_eoe::state</a></div><div class="ttdeci">void(* state)(ec_eoe_t *)</div><div class="ttdoc">state function for the state machine </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00082">ethernet.h:82</a></div></div>
<div class="ttc" id="structec__eoe_html_aa662995414d6117c623a67d7d3807bfc"><div class="ttname"><a href="structec__eoe.html#aa662995414d6117c623a67d7d3807bfc">ec_eoe::tx_frame_number</a></div><div class="ttdeci">uint8_t tx_frame_number</div><div class="ttdoc">number of the transmitted frame </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00102">ethernet.h:102</a></div></div>
<div class="ttc" id="structec__eoe_html_a94ade8d6e6250de7d04b86160b83c22c"><div class="ttname"><a href="structec__eoe.html#a94ade8d6e6250de7d04b86160b83c22c">ec_eoe::rx_counter</a></div><div class="ttdeci">uint32_t rx_counter</div><div class="ttdoc">octets received during last second </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00092">ethernet.h:92</a></div></div>
<div class="ttc" id="structec__eoe_html_a53d2194eaa281eeaf4d101443b4117a6"><div class="ttname"><a href="structec__eoe.html#a53d2194eaa281eeaf4d101443b4117a6">ec_eoe::tx_queue_sem</a></div><div class="ttdeci">struct semaphore tx_queue_sem</div><div class="ttdoc">Semaphore for the send queue. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00100">ethernet.h:100</a></div></div>
<div class="ttc" id="structec__eoe_html_a5f814555b215fa648246d3e4b8952db4"><div class="ttname"><a href="structec__eoe.html#a5f814555b215fa648246d3e4b8952db4">ec_eoe::tx_frame</a></div><div class="ttdeci">ec_eoe_frame_t * tx_frame</div><div class="ttdoc">current TX frame </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00101">ethernet.h:101</a></div></div>
<div class="ttc" id="structec__eoe_html_a94fc1a4085026439575dee3432a8613d"><div class="ttname"><a href="structec__eoe.html#a94fc1a4085026439575dee3432a8613d">ec_eoe::tries</a></div><div class="ttdeci">unsigned int tries</div><div class="ttdoc">Tries. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00109">ethernet.h:109</a></div></div>
<div class="ttc" id="structec__eoe_html"><div class="ttname"><a href="structec__eoe.html">ec_eoe</a></div><div class="ttdoc">Ethernet over EtherCAT (EoE) handler. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00076">ethernet.h:76</a></div></div>
<div class="ttc" id="structec__eoe_html_ad0775c67897e6c38beb0b656e8732d05"><div class="ttname"><a href="structec__eoe.html#ad0775c67897e6c38beb0b656e8732d05">ec_eoe::rx_idle</a></div><div class="ttdeci">unsigned int rx_idle</div><div class="ttdoc">Idle flag. </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00094">ethernet.h:94</a></div></div>
<div class="ttc" id="structec__eoe_html_aa11f7b383aa09219aca3cfeffcdb55df"><div class="ttname"><a href="structec__eoe.html#aa11f7b383aa09219aca3cfeffcdb55df">ec_eoe::dev</a></div><div class="ttdeci">struct net_device * dev</div><div class="ttdoc">net_device for virtual ethernet device </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00083">ethernet.h:83</a></div></div>
<div class="ttc" id="structec__eoe_html_a3a3a486cb3359c0d528e4e4e37a6953d"><div class="ttname"><a href="structec__eoe.html#a3a3a486cb3359c0d528e4e4e37a6953d">ec_eoe::queue_datagram</a></div><div class="ttdeci">unsigned int queue_datagram</div><div class="ttdoc">the datagram is ready for queuing </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00081">ethernet.h:81</a></div></div>
<div class="ttc" id="structec__eoe_html_a3ec0e5dc97f984769403f00230e53f03"><div class="ttname"><a href="structec__eoe.html#a3ec0e5dc97f984769403f00230e53f03">ec_eoe::tx_queued_frames</a></div><div class="ttdeci">unsigned int tx_queued_frames</div><div class="ttdoc">number of frames in the queue </div><div class="ttdef"><b>Definition:</b> <a href="ethernet_8h_source.html#l00099">ethernet.h:99</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="ethernet_8h.html">ethernet.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
